from PySide6.QtWidgets import QWidget
from PySide6.QtCore import QPropertyAnimation, QPoint, QEasingCurve,QSize
from PySide6.QtWidgets import QApplication
class Window(QWidget):
    def __init__(self):
        super().__init__()
        self.resize(600, 600)
        self.child = QWidget(self)
        self.child.setStyleSheet("background-color:red;border-radius:15px;")
        self.child.resize(100, 100)
        self.anim = QPropertyAnimation(self.child, b"pos")
        self.anim.setEndValue(QPoint(400, 400))
        self.anim.setDuration(1500)
        self.anim.start()

if __name__ == "__main__":

    a = QApplication([])
    buttonAnimWidget = Window()
    buttonAnimWidget.resize(QSize(800, 600))
    buttonAnimWidget.show()
    a.exec()